//============================================================================
// Name        : c++0x-tests.cpp
// Author      : manish
// Version     :
// Copyright   : GNU GPL2
// Description : Hello World in C, Ansi-style
//============================================================================

#include <stdlib.h>
#include "object.h"
#include "myAllocator.h"

#include <vector>
#include <iostream>
#include <algorithm>

#include <glog/logging.h>

int main(int argc, const char *const argv[0]) {
	google::InitGoogleLogging(argv[0]);

	LOG(INFO) << "Google log --> hello world";

	size_t lim = 10000000;
	std::vector<char, MyAllocator<char>> vec;
	//std::vector<char> vec;
	vec.reserve(lim);
	for (int ii = 0; ii < lim; ++ii) //vec.push_back(ii);
	  vec[ii] = ii;

	//std::copy(vec.begin(), vec.end(), std::ostream_iterator<int>(std::cout, ", "));
	//std::cout << std::endl;

	return EXIT_SUCCESS;
}
